#include<stdio.h>
int main()
{
	int i = 5, space = 5, n = 5;
	for (i = 5; i >= 1; i--) {
		for (space = i - 1; space >= 1; space--) {
			printf(" ");
		}
		for (n = i; n >= 1; n--) {
			printf("%d", i);
		}
		printf("\n");
	}
	return 0;
}